package com.drools.drools.dateEffective;

import com.drools.drools.BaseTest;
import org.junit.Test;
import org.kie.api.runtime.KieSession;

/**
 * Created with IntelliJ IDEA.
 * User: mishuai
 * Date: 2019-05-06
 * Time: 21:48
 * Des:
 */
public class DateEffectiveTest extends BaseTest {
    @Test
    public void test(){
        System.setProperty("drools.dataformat","yyyy-MM-dd HH:ss");
        KieSession kieSession=this.getKieSessionBySessionName("dateEffective-rules");

        kieSession.fireAllRules();
        kieSession.dispose();
    }
}
